package com.gridpower.spreadsheet.client.models;

public class UIMouseModel extends UIModel {
	/*public static String OBJ_TOPLEFT = "topLeft";
	public static String OBJ_TOPRIGHT = "topRight";
	public static String OBJ_BOTLEFT = "botLeft";
	public static String OBJ_BOTRIGHT = "botRight";*/ // above are use less!!!
	public static String OBJ_CELL = "cell";
	public static String OBJ_SELECTIONEDGE = "selectionEdge";
	public static String OBJ_HORIRULER = "horiRuler";
	public static String OBJ_VERTRULER = "vertRuler";
	public static String OBJ_HORIRULER_SEP = "horiRulerSep";// hori ruler seperator
	public static String OBJ_VERTRULER_SEP = "vertRulerSep";
	
	//private boolean isSnapped = false;// down on edge, not related to top/left/bot/right
	                                  // so it is OK to judge in each grid part
	private boolean isMouseDown = false;
	private String objectMouseDownOn = "";
	private String objectMouseMoveOn = "";//not down on
	private int downX, downY;
	// sometimes usable, deprecated
	private int downRow, downCol;
	private int overRow, overCol;
	// sometimes usable, used when judge which ruler cell it located
	private int downRowLine, downVertLine;
	
	public int getDownCol() {
		return downCol;
	}
	public int getDownRow() {
		return downRow;
	}
	public int getDownRowLine() {
		return downRowLine;
	}
	public int getDownVertLine() {
		return downVertLine;
	}
	public int getDownX() {
		return downX;
	}
	public int getDownY() {
		return downY;
	}
	public boolean isMouseDown() {
		return isMouseDown;
	}
	public String getObjectMouseDownOn() {
		return objectMouseDownOn;
	}
	public String getObjectMouseMoveOn() {
		return objectMouseMoveOn;
	}
	public int getOverCol() {
		return overCol;
	}
	public int getOverRow() {
		return overRow;
	}
	
	public void setDownCol(int downCol) {
		this.downCol = downCol;
	}
	public void setDownRow(int downRow) {
		this.downRow = downRow;
	}
	public void setDownRowLine(int downRowLine) {
		this.downRowLine = downRowLine;
	}
	public void setDownVertLine(int downVertLine) {
		this.downVertLine = downVertLine;
	}
	public void setDownX(int downX) {
		this.downX = downX;
	}
	public void setDownY(int downY) {
		this.downY = downY;
	}
	public void setMouseDown(boolean isMouseDown) {
		this.isMouseDown = isMouseDown;
	}
	public void setObjectMouseDownOn(String objectMouseDownOn) {
		this.objectMouseDownOn = objectMouseDownOn;
	}
	public void setObjectMouseMoveOn(String objectMouseMoveOn) {
		this.objectMouseMoveOn = objectMouseMoveOn;
	}

	public void setOverCol(int overCol) {
		this.overCol = overCol;
	}
	public void setOverRow(int overRow) {
		this.overRow = overRow;
	}
	
}
